
env = Environment()
env[ 'CCFLAGS' ] = '-g -O2 -fPIC -D_THREAD_SAFE -pthread  -Wall -Wno-sign-compare'
env[ 'CPPPATH' ] = ['../include','../../include','../../../include','/home/s/include', ]
env[ 'CPPFLAGS' ] = []
env[ 'LIBPATH' ] = ['../lib','../../lib','../../../lib','/home/s/lib/static', ]
env[ 'LIBS' ] = ['sakcab_packet','sakcab_store','bocat_logging','bocat_common','protobuf','kyotocabinet','boost_program_options-mt','boost_filesystem-mt', 'boost_system-mt', 'boost_thread-mt','z','crypto','pthread',]



server_target = 'server'
server_objects = ['posix_main.cpp','server.cpp','connection.cpp','store_service.cpp','slim_server.cpp']
programs = env.Program(server_target, server_objects)
program = str(programs[0])

for bin_dir in ('../bin','../../bin') :
	env.Command( '%s/%s' % (bin_dir, program), program, Copy("$TARGET","$SOURCE") )

